gtk4.git
9 years agowidget: Remove unused visibility-notify-event
Timm Bäder [Tue, 1 Nov 2016 19:29:00 +0000 (20:29 +0100)]
widget: Remove unused visibility-notify-event

9 years agowidget: Remove state-flags leftovers
Timm Bäder [Tue, 1 Nov 2016 19:28:28 +0000 (20:28 +0100)]
widget: Remove state-flags leftovers

9 years agocss: Fix radial-gradient() color stop computation
Benjamin Otte [Wed, 2 Nov 2016 14:19:49 +0000 (15:19 +0100)]
css: Fix radial-gradient() color stop computation

The copy/paste from the linear gradient code had an error.

9 years agogdk/win32: Complete gdk_screen_is_composited() removal
Chun-wei Fan [Tue, 1 Nov 2016 08:42:31 +0000 (16:42 +0800)]
gdk/win32: Complete gdk_screen_is_composited() removal

Commit d249e77 (API: screen: Remove gdk_screen_is_composited()) attempted
to update the GDK-Win32 for the removal of the API, but some parts were
missed.  This updates the code so that things continue to build and run.

https://bugzilla.gnome.org/show_bug.cgi?id=773299

9 years agogsk: Export gsk_render_node_get_bounds()
Chun-wei Fan [Wed, 2 Nov 2016 04:57:27 +0000 (12:57 +0800)]
gsk: Export gsk_render_node_get_bounds()

gtk/inspector/rendernodeview.c calls this private function from GSK, so we
need to ensure that this function is exported so that GTK+ can link
properly on compilers that do not support automatic exporting.

https://bugzilla.gnome.org/show_bug.cgi?id=773299

9 years agogtk: Chain up in realize()
Benjamin Otte [Wed, 2 Nov 2016 06:16:08 +0000 (07:16 +0100)]
gtk: Chain up in realize()

... instead of copy/paste from gtk_widget_real_realize.

9 years agowidget: Insist on widgets calling gtk_widget_set_has_window()
Benjamin Otte [Wed, 2 Nov 2016 05:51:59 +0000 (06:51 +0100)]
widget: Insist on widgets calling gtk_widget_set_has_window()

This way, we can grep the code for the bad widgets that set this to
TRUE and fix them.

9 years agogtk: Call gtk_widget_set_has_window() on every widget
Benjamin Otte [Wed, 2 Nov 2016 05:51:33 +0000 (06:51 +0100)]
gtk: Call gtk_widget_set_has_window() on every widget

Even if we just set it to the value it already had.

9 years agotreeview: Don't use gtk_widget_get_allocaton()
Benjamin Otte [Wed, 2 Nov 2016 05:46:02 +0000 (06:46 +0100)]
treeview: Don't use gtk_widget_get_allocaton()

Use gtk_widget_get_allocated_width()/height() instead.

9 years agodemos/application: Call the right program
Chun-wei Fan [Wed, 2 Nov 2016 04:23:41 +0000 (12:23 +0800)]
demos/application: Call the right program

We need to update the call to gtk4-application-demo, plus include the
correct icon file for this.

9 years agoinspector: Cosmetic improvements to the recorder
Matthias Clasen [Wed, 2 Nov 2016 02:06:25 +0000 (22:06 -0400)]
inspector: Cosmetic improvements to the recorder

9 years agoUse GLSL version 110 for OpenGL 2 shaders.
Juan Pablo Ugarte [Tue, 1 Nov 2016 13:59:05 +0000 (10:59 -0300)]
Use GLSL version 110 for OpenGL 2 shaders.

According to docs and Intel legacy drivers,
GLSL version 130 is for GL 3.0 not GL 2.0/2.1

Validated files with reference compiler from
https://www.khronos.org/opengles/sdk/tools/Reference-Compiler/

9 years agocheck button: Update for new box gadget functionality
Matthias Clasen [Fri, 28 Oct 2016 16:58:18 +0000 (12:58 -0400)]
check button: Update for new box gadget functionality

The box gadget now does the render node conversion for
all its children, so we have less work to do.

9 years agoexpander: Update for new box gadget functionality
Matthias Clasen [Fri, 28 Oct 2016 16:57:39 +0000 (12:57 -0400)]
expander: Update for new box gadget functionality

The box gadget now does the render node conversion for
all its children, so we have less work to do.

9 years agobox gadget: Implement get_render_node vfunc
Matthias Clasen [Fri, 28 Oct 2016 16:57:07 +0000 (12:57 -0400)]
box gadget: Implement get_render_node vfunc

This implements get_render_node in the obvious way.

9 years agocontainer: Add a private api for render node propagation
Matthias Clasen [Fri, 28 Oct 2016 16:56:21 +0000 (12:56 -0400)]
container: Add a private api for render node propagation

Add a function that propagates a render node for a single
child. This will be used in the box gadget to handle widgets.

9 years agogadget: Add a get_render_node vfunc
Matthias Clasen [Fri, 28 Oct 2016 16:55:33 +0000 (12:55 -0400)]
gadget: Add a get_render_node vfunc

This will let us do box gadgets like we do containers.

9 years agoConvert GtkEntry to indirect rendering
Matthias Clasen [Fri, 28 Oct 2016 00:46:08 +0000 (20:46 -0400)]
Convert GtkEntry to indirect rendering

Warning! This unveils some positioning issue with the secondary icon.

9 years agoFix the build
Matthias Clasen [Tue, 1 Nov 2016 18:11:25 +0000 (14:11 -0400)]
Fix the build

testgtk.c had some dead code referring to GdkColor. Drop it.

9 years agoDrop GdkColor
Matthias Clasen [Fri, 28 Oct 2016 21:08:25 +0000 (17:08 -0400)]
Drop GdkColor

It is deprecated and no longer used.

9 years agoStop supporting GdkColor in text buffer serialization
Matthias Clasen [Fri, 28 Oct 2016 21:04:24 +0000 (17:04 -0400)]
Stop supporting GdkColor in text buffer serialization

GdkColor is going away soon.

9 years agoDrop the settings color parser
Matthias Clasen [Fri, 28 Oct 2016 21:03:24 +0000 (17:03 -0400)]
Drop the settings color parser

We have no color-valued settings anymore.

9 years agoUse GdkRGBA for text attributes
Matthias Clasen [Fri, 28 Oct 2016 20:58:12 +0000 (16:58 -0400)]
Use GdkRGBA for text attributes

Now that GtkTextAttributes is private, we can clean this struct
up a bit. The first step is to switch from GdkColor to GdkRGBA,
and adapt all users.

9 years agoDrop GtkTextAttributes from the docs
Matthias Clasen [Thu, 27 Oct 2016 17:43:15 +0000 (13:43 -0400)]
Drop GtkTextAttributes from the docs

9 years agoMake GtkTextAttributes private
Matthias Clasen [Thu, 27 Oct 2016 17:39:01 +0000 (13:39 -0400)]
Make GtkTextAttributes private

This is a problematic struct, and giving direct access to it
has kept us from making improvements to GtkTextView. Drop it
from the public API, together with the auxiliary APIs. If
it turns out that this functionality is needed, we should add
individual getters.

9 years agoinspector: Add a button to clear all recordings
Benjamin Otte [Tue, 1 Nov 2016 17:32:50 +0000 (18:32 +0100)]
inspector: Add a button to clear all recordings

Clears the recordings list, and even better: Frees all your memory.

9 years agoinspector: Collect statistics for unclassable types
Benjamin Otte [Tue, 1 Nov 2016 17:31:13 +0000 (18:31 +0100)]
inspector: Collect statistics for unclassable types

I want to know how many GskRenderNodes I have!

9 years agoinspector: Require toggling on/off of recording
Benjamin Otte [Tue, 1 Nov 2016 17:03:16 +0000 (18:03 +0100)]
inspector: Require toggling on/off of recording

This way, we don't eat up all your memory every time you start the
inspector.

9 years agoinspector: Add list of render nodes to recorder
Benjamin Otte [Tue, 1 Nov 2016 00:21:02 +0000 (01:21 +0100)]
inspector: Add list of render nodes to recorder

And make it possible to view the actually selected node in the view.

9 years agoinspector: Next step in the recorder view
Benjamin Otte [Mon, 31 Oct 2016 15:38:19 +0000 (16:38 +0100)]
inspector: Next step in the recorder view

We now record all render operations and display them.

Warning: This is very brute force, you can't clear the recordings or
turn recording off. And this thing easily records 25MB per recorded
frame, so be careful to not run out of memory and get your browser
killed. ;)

9 years agoinspector: Add more infrastructure
Benjamin Otte [Sun, 30 Oct 2016 05:11:38 +0000 (06:11 +0100)]
inspector: Add more infrastructure

This one introduces the Recording object which is essentially a single
instance of something that happened.
The RenderRecording is an instance of an actual rendering operation.

9 years agoinspector: Add outline for a new "recorder" tab
Benjamin Otte [Sat, 29 Oct 2016 19:11:23 +0000 (21:11 +0200)]
inspector: Add outline for a new "recorder" tab

9 years agodocs: fix typos in GtkMenuShell
Sébastien Wilmet [Tue, 1 Nov 2016 14:51:21 +0000 (15:51 +0100)]
docs: fix typos in GtkMenuShell

9 years agorendernode: Remove the renderer from the rendernode
Benjamin Otte [Tue, 1 Nov 2016 04:47:35 +0000 (05:47 +0100)]
rendernode: Remove the renderer from the rendernode

9 years agorendernode: Require passing a renderer to get_draw_context()
Benjamin Otte [Tue, 1 Nov 2016 04:45:01 +0000 (05:45 +0100)]
rendernode: Require passing a renderer to get_draw_context()

This is in preparation of making render nodes independent of the
renderer, so that they can be rendered multiple times with different
renderers.

9 years agogsk: Remove gsk_render_node_get_scale_factor()
Benjamin Otte [Tue, 1 Nov 2016 03:58:29 +0000 (04:58 +0100)]
gsk: Remove gsk_render_node_get_scale_factor()

Scale factors belong to the renderers, not the nodes. The nodes should
just use whatever scale factor the renderer tells them to when
rendering.

9 years agogdkgl: Change prototype of function
Benjamin Otte [Tue, 1 Nov 2016 03:47:52 +0000 (04:47 +0100)]
gdkgl: Change prototype of function

The function does not upload a cairo surface, it uploads pixel data.

So don't take a cairo surface as an argument, take pixel data.

9 years agogsk: Use the appropriate GLSL version
Emmanuele Bassi [Tue, 1 Nov 2016 15:00:31 +0000 (15:00 +0000)]
gsk: Use the appropriate GLSL version

The GLSL versions are:

  OpenGL 2.1: #version 110
  OpenGL 3.0: #version 130
  OpenGL 3.2: #version 150

  OpenGLES 2.0: #version 100
  OpenGLES 3.0: #version 300 es

So we need to check the version of the GdkGLContext if we want use the
appropriate version, especially for legacy OpenGL contexts, which can be
both 3.x and 2.x.

9 years agoUpdated Czech translation
Marek Černocký [Tue, 1 Nov 2016 08:48:00 +0000 (09:48 +0100)]
Updated Czech translation

9 years agowidget: Create render node with correct bounds
Benjamin Otte [Tue, 1 Nov 2016 02:57:42 +0000 (03:57 +0100)]
widget: Create render node with correct bounds

We want a render node where (0,0) is the top left of the widget.
However, we need to account for the clip origin not matching the
allocation origin.

9 years agotreeview: Clip before translating
Benjamin Otte [Mon, 31 Oct 2016 23:04:01 +0000 (00:04 +0100)]
treeview: Clip before translating

We want to clip invalidations to the bin window, not the treeview
itself.

9 years agotreeview: Clip to bin window size when drawing bin window
Benjamin Otte [Mon, 31 Oct 2016 23:03:03 +0000 (00:03 +0100)]
treeview: Clip to bin window size when drawing bin window

This ensures that the drawing does not extend the actually drawn area.

It also ensures that our math is sane, because the math assumes the clip
area cannot extend the window. After all, before GTK4 it always was like
that.

Fixes a bunch of drawing bugs when the clip area does indeed extend too
far.

9 years agorendernode: Transform cairo_t to correct coordinates
Benjamin Otte [Tue, 1 Nov 2016 02:42:35 +0000 (03:42 +0100)]
rendernode: Transform cairo_t to correct coordinates

We want to have the coordinate system of the created cairo surface to be
identical to the coordinate system of the node's bounds. For that, we
need to translate the cairo surface by the bounds' origin.

9 years agorendernode: Use ceilf() on the size of the cairo surface
Benjamin Otte [Tue, 1 Nov 2016 02:40:01 +0000 (03:40 +0100)]
rendernode: Use ceilf() on the size of the cairo surface

Bounds sizes are floats, so round up to the next integer so we end up
with enough space to draw.

9 years agostack: Don't underallocate child in interpolate-size case
Timm Bäder [Fri, 28 Oct 2016 10:56:36 +0000 (12:56 +0200)]
stack: Don't underallocate child in interpolate-size case

In that case, we can't just rely on the stack allocation being big
enough. Especially, the child can actually be bigger than the current
stack allocation, so take that into account when positioning it.

9 years agostack: Redraw last_visible_surface if child allocation changes
Timm Bäder [Fri, 28 Oct 2016 10:51:03 +0000 (12:51 +0200)]
stack: Redraw last_visible_surface if child allocation changes

So the widget is properly aligned.

9 years agobuilderparser: Order string comparisons after frequency
Timm Bäder [Mon, 31 Oct 2016 16:42:40 +0000 (17:42 +0100)]
builderparser: Order string comparisons after frequency

The typical UI file has a lot more <property> tags than it has
<requested> or <interface> tags, etc. so order the string comparisons
according to this expected case.

9 years agobuilderparser: Save tag type instead of tag name
Timm Bäder [Sun, 23 Oct 2016 15:25:58 +0000 (17:25 +0200)]
builderparser: Save tag type instead of tag name

So we can save a few string comparisons

9 years agobuilderparser: Don't needlessly copy requested object names
Timm Bäder [Mon, 12 Sep 2016 19:39:33 +0000 (21:39 +0200)]
builderparser: Don't needlessly copy requested object names

9 years agobuilderparser: stack-allocate ParserData
Timm Bäder [Mon, 12 Sep 2016 19:27:51 +0000 (21:27 +0200)]
builderparser: stack-allocate ParserData

No reason for it to be heap-allocated, it won't survive this function
call anyway.

9 years agopaned: Convert to indirect rendering
Timm Bäder [Sat, 29 Oct 2016 20:16:39 +0000 (22:16 +0200)]
paned: Convert to indirect rendering

9 years agopopover: convert to indirect rendering
Timm Bäder [Sat, 29 Oct 2016 17:43:49 +0000 (19:43 +0200)]
popover: convert to indirect rendering

9 years agoseparator: Convert to indirect rendering
Timm Bäder [Sat, 29 Oct 2016 17:27:22 +0000 (19:27 +0200)]
separator: Convert to indirect rendering

9 years agowidget: Remove damage-event
Timm Bäder [Sun, 30 Oct 2016 18:29:41 +0000 (19:29 +0100)]
widget: Remove damage-event

9 years agowidget: remove show-help
Timm Bäder [Sun, 30 Oct 2016 18:23:36 +0000 (19:23 +0100)]
widget: remove show-help

9 years agowidget: Remove app-paintable
Timm Bäder [Sun, 30 Oct 2016 16:01:19 +0000 (17:01 +0100)]
widget: Remove app-paintable

9 years agobuild: Clean the uninstalled introspection GIR files
Emmanuele Bassi [Mon, 31 Oct 2016 16:30:10 +0000 (16:30 +0000)]
build: Clean the uninstalled introspection GIR files

We need to remove them from the build when cleaning them.

Additionally, this automatically adds them to the Git ignore file.

9 years agogsk: Use GskRenderer.create_cairo_surface()
Emmanuele Bassi [Mon, 31 Oct 2016 16:28:09 +0000 (16:28 +0000)]
gsk: Use GskRenderer.create_cairo_surface()

GskRenderNode should ask the renderer for a Cairo surface when creating
a drawing context.

9 years agogsk: Add internal Renderer.create_cairo_surface()
Emmanuele Bassi [Mon, 31 Oct 2016 16:26:50 +0000 (16:26 +0000)]
gsk: Add internal Renderer.create_cairo_surface()

We need an overridable entry point for GskRenderer to create Cairo
surfaces.

Implementations of GskRenderer can override create_cairo_surface() to
create efficient surfaces, possibly with zero copies involved, depending
on the GDK backend.

9 years agogdk/Makefile.am: fixed glsl resources extra dist files.
Juan Pablo Ugarte [Fri, 28 Oct 2016 20:30:46 +0000 (17:30 -0300)]
gdk/Makefile.am: fixed glsl resources extra dist files.

Use the same wildcard partern used to generate gdk.gresource.xml to include files in EXTRA_DIST var.

9 years agobutton: show() the image in gtk_button_new_from_icon_name
Timm Bäder [Sat, 29 Oct 2016 20:05:18 +0000 (22:05 +0200)]
button: show() the image in gtk_button_new_from_icon_name

9 years agotests: Don't add wigets to a GtkInvisible
Timm Bäder [Sun, 30 Oct 2016 14:36:26 +0000 (15:36 +0100)]
tests: Don't add wigets to a GtkInvisible

It's not a GtkContainer.

9 years agobox: Use measure() to measure child sizes
Timm Bäder [Sat, 29 Oct 2016 14:35:16 +0000 (16:35 +0200)]
box: Use measure() to measure child sizes

9 years agobox: Mark out params of _query_packing as (optional)
Timm Bäder [Sat, 29 Oct 2016 14:16:49 +0000 (16:16 +0200)]
box: Mark out params of _query_packing as (optional)

9 years agosidebarrow: Use GtkButton:icon-name
Timm Bäder [Sat, 29 Oct 2016 13:51:17 +0000 (15:51 +0200)]
sidebarrow: Use GtkButton:icon-name

9 years agobox: Remove unused private API
Timm Bäder [Sat, 29 Oct 2016 13:50:53 +0000 (15:50 +0200)]
box: Remove unused private API

9 years agodialog: Let GtkButton manage its style classes
Timm Bäder [Sat, 29 Oct 2016 08:16:03 +0000 (10:16 +0200)]
dialog: Let GtkButton manage its style classes

A button created using gtk_button_new_with_label will already have the
text-button style class applied.

9 years agofilechooser: Use GtkButton's icon-name property
Timm Bäder [Sat, 29 Oct 2016 08:07:15 +0000 (10:07 +0200)]
filechooser: Use GtkButton's icon-name property

9 years agogsk: Fix return annotation for gsk_render_node_get_name()
Rico Tzschichholz [Sun, 30 Oct 2016 06:58:05 +0000 (07:58 +0100)]
gsk: Fix return annotation for gsk_render_node_get_name()

9 years agoUpdate POTFILES.in
Piotr Drąg [Sat, 29 Oct 2016 19:32:56 +0000 (21:32 +0200)]
Update POTFILES.in

9 years agoAPI: rendernode: Add gsk_render_node_get_name()
Benjamin Otte [Sat, 29 Oct 2016 16:08:11 +0000 (18:08 +0200)]
API: rendernode: Add gsk_render_node_get_name()

Make the debug string available to public API.

9 years agodisplay: Actually initialize variables
Benjamin Otte [Sat, 29 Oct 2016 16:06:24 +0000 (18:06 +0200)]
display: Actually initialize variables

Forgot to add this in d249e77bcb19c3981f750556809b48d406a027eb.

9 years agoAdwaita: add more padding to popover menus...
Lapo Calamandrei [Sat, 29 Oct 2016 15:34:49 +0000 (17:34 +0200)]
Adwaita: add more padding to popover menus...

...since Timm removed that from the actual code.

9 years agoRevert "Adwaita: add more padding to popovers"
Lapo Calamandrei [Sat, 29 Oct 2016 15:33:26 +0000 (17:33 +0200)]
Revert "Adwaita: add more padding to popovers"

Padding should be added back to menu popover only...
This reverts commit 670948586afbd3957dd9dbe28b3a5426270cd901.

9 years agoAdwaita: no rounded corners for solid-csd.
Lapo Calamandrei [Sat, 29 Oct 2016 15:18:58 +0000 (17:18 +0200)]
Adwaita: no rounded corners for solid-csd.

9 years agoAdwaita: add more padding to popovers
Lapo Calamandrei [Sat, 29 Oct 2016 15:14:07 +0000 (17:14 +0200)]
Adwaita: add more padding to popovers

...since Timm stole some.

9 years agoAPI: widget: Remove gtk_widget_is_composited()
Benjamin Otte [Sat, 29 Oct 2016 02:48:29 +0000 (04:48 +0200)]
API: widget: Remove gtk_widget_is_composited()

We don't need to clutter our API with functions that are easily
available elsewhere and effectively unused.

9 years agoAPI: screen: Remove gdk_screen_is_composited()
Benjamin Otte [Sat, 29 Oct 2016 02:37:20 +0000 (04:37 +0200)]
API: screen: Remove gdk_screen_is_composited()

Switch code to use gdk_display_is_composited() instead.

The new code also doesn't use a vfunc to query the property but rather
requires the backend to call set_composited()/set_rgba() to change the
value.

9 years agoAPI: widget: Remove GtkWidget::composited-changed signal
Benjamin Otte [Sat, 29 Oct 2016 01:25:06 +0000 (03:25 +0200)]
API: widget: Remove GtkWidget::composited-changed signal

Nobody uses it.

If you need the functionality, listen to display changes on
your widget and then connect to the display's notify::composited.

9 years agoinspector: Use the new APIs when displaying information
Benjamin Otte [Fri, 28 Oct 2016 23:06:05 +0000 (01:06 +0200)]
inspector: Use the new APIs when displaying information

9 years agoAPI: gdk: Add gdk_display_is_rgba() and gdk_display_is_composited()
Benjamin Otte [Fri, 28 Oct 2016 21:38:16 +0000 (23:38 +0200)]
API: gdk: Add gdk_display_is_rgba() and gdk_display_is_composited()

Also add properties for those two properties.

The first property is equivalent to checking if an RGBA visual exists,
the 2nd is equivalent to gdk_screen_is_composited().

9 years agoframe: Get the render node from the gadget
Timm Bäder [Fri, 28 Oct 2016 17:32:50 +0000 (19:32 +0200)]
frame: Get the render node from the gadget

So we get a proper css background etc. applied.

9 years agoFix clip of more windowed widgets
Timm Bäder [Fri, 28 Oct 2016 16:10:22 +0000 (18:10 +0200)]
Fix clip of more windowed widgets

9 years agoFix clip position of windowed widgets
Timm Bäder [Fri, 28 Oct 2016 15:55:13 +0000 (17:55 +0200)]
Fix clip position of windowed widgets

9 years agoUpdated Czech translation
Marek Černocký [Fri, 28 Oct 2016 15:07:54 +0000 (17:07 +0200)]
Updated Czech translation

9 years agomodelbutton: Convert to indirect rendering
Timm Bäder [Fri, 28 Oct 2016 14:29:51 +0000 (16:29 +0200)]
modelbutton: Convert to indirect rendering

9 years agocssgadget: Move gadgets to their allocated position
Timm Bäder [Fri, 28 Oct 2016 12:31:43 +0000 (14:31 +0200)]
cssgadget: Move gadgets to their allocated position

9 years agoswitch: Port to indirect rendering
Timm Bäder [Fri, 28 Oct 2016 11:42:11 +0000 (13:42 +0200)]
switch: Port to indirect rendering

9 years agotestframe: Fix css element name
Timm Bäder [Thu, 27 Oct 2016 12:04:44 +0000 (14:04 +0200)]
testframe: Fix css element name

9 years agoframe: Use measure() to measure label size
Timm Bäder [Thu, 27 Oct 2016 07:54:42 +0000 (09:54 +0200)]
frame: Use measure() to measure label size

9 years agostack: Use measure() to measure child widget
Timm Bäder [Thu, 27 Oct 2016 07:38:45 +0000 (09:38 +0200)]
stack: Use measure() to measure child widget

Simpler code this way \o/

9 years agocsswidgetnode: Fix container condition for GtkInvisible
Timm Bäder [Tue, 25 Oct 2016 14:52:27 +0000 (16:52 +0200)]
csswidgetnode: Fix container condition for GtkInvisible

... which is a toplevel, but not a container.

9 years agomenusectionbox: Remove margins
Timm Bäder [Mon, 24 Oct 2016 18:08:58 +0000 (20:08 +0200)]
menusectionbox: Remove margins

So the theme can add the spacing on its own.

9 years agoinspector: make use of GtkButton's icon-name property
Timm Bäder [Mon, 24 Oct 2016 18:03:27 +0000 (20:03 +0200)]
inspector: make use of GtkButton's icon-name property

9 years agotoggletoolbutton: Remove unneeded deprecation markers
Timm Bäder [Mon, 24 Oct 2016 09:45:21 +0000 (11:45 +0200)]
toggletoolbutton: Remove unneeded deprecation markers

9 years agoRevert "Convert GtkEntry to indirect rendering"
Matthias Clasen [Fri, 28 Oct 2016 10:47:26 +0000 (06:47 -0400)]
Revert "Convert GtkEntry to indirect rendering"

This reverts commit 8e29222d95449278d66f3e067d7dc1dcb7f6dcae.

This needs more work - spin buttons need to be converted at
the same time, and we should make sure that text still appears.

9 years agoGDK-Win32/4.0: Improve GL on Windows
Chun-wei Fan [Fri, 14 Oct 2016 11:04:49 +0000 (19:04 +0800)]
GDK-Win32/4.0: Improve GL on Windows

Update the GDKGL implementation:

-Allow legacy contexts to be created.
-Use finer-grained attributes to ask for a pixel format when possible,
 which also adds support for anti-aliasing

In fact the changes here are required for GTKGL to work properly on
Windows for 4.x.

Note that creation of gles contexts is not done here, as the system does
not support such contexts directly on Windows, but only through means such
as ANGLE, which is a totally different issue here.

https://bugzilla.gnome.org/show_bug.cgi?id=773528

9 years agoGDK/Win32: Deal with leftovers from removal of GdkWindow items
Chun-wei Fan [Fri, 28 Oct 2016 05:42:55 +0000 (13:42 +0800)]
GDK/Win32: Deal with leftovers from removal of GdkWindow items

We need to further remove items for the removal of:
-GdkWindow->depth (commit 6cc94ff)
-gdk_window_get_visual()/GdkWindow->visual (commit f420dc7)
-GDK visual query APIs (commit 45c0379)

https://bugzilla.gnome.org/show_bug.cgi?id=773299

9 years agoAPI: gdk: Remove visual querying APIs
Benjamin Otte [Fri, 28 Oct 2016 02:42:24 +0000 (04:42 +0200)]
API: gdk: Remove visual querying APIs

They are unused, only work on the default display anyway and visuals are
on their way out.

9 years agoAPI: gdk: Remove gdk_window_get_visual()
Benjamin Otte [Thu, 27 Oct 2016 21:27:49 +0000 (23:27 +0200)]
API: gdk: Remove gdk_window_get_visual()

With it, remove window->visual.